﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DangKy.aspx.cs"
    Inherits="WebRaoVat.DangKy" Title="Đăng ký" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="box-pro-highlights">
        <div class="box-pro-highlights-header">
            <a href="###" target="_blank" class="no-hover">Đăng ký</a>
        </div>
        <div class="content">
            <table border="0" style="width: 100%;" align="center">
                <tr>
                    <td colspan="4">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 45%; color: #0000CC;">
                        Email
                    </td>
                    <td style="width: 6%; color: Red" align="right">
                        (*)
                    </td>
                    <td style="width: 20%">
                        <asp:TextBox ID="txtEmail" runat="server" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td style="text-align: left">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="* Email không hợp lệ" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            EnableTheming="True">*</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="color: #0000CC;">
                        Tên truy cập
                    </td>
                    <td style="color: Red" align="right">
                        (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtUsername" runat="server" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="color: #0000CC;">
                        Mật khẩu
                    </td>
                    <td style="color: Red" align="right">
                        (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="color: #0000CC;">
                        Nhập lại mật khẩu
                    </td>
                    <td style="color: Red" align="right">
                        (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtPasswordAgain" runat="server" TextMode="Password" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="color: #0000CC;">
                        Điện thoại
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td style="width: 70px">
                        <asp:TextBox ID="txtDienThoai" runat="server" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="color: #0000CC;">
                        Địa chỉ
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td style="width: 70px">
                        <asp:TextBox ID="txtDiaChi" runat="server" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <div>
                            <asp:Image ID="imgCaptcha" runat="server" ImageUrl="~/Captcha.aspx" />
                            <asp:ImageButton ID="imbReLoad" runat="server" ImageUrl="~/images/green.gif" /><br />
                        </div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="color: #0000CC;">
                        Mã bảo mật
                    </td>
                    <td style="color: Red" align="right">
                        (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtCaptcha" runat="server" BorderStyle="Solid"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <asp:Button ID="btnHoanTat" runat="server" Text="Hoàn tất" OnClick="btnHoanTat_Click" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <% for (int i = 0; i < ErrorMessage.Count; ++i)
                           {
                        %>
                        <div style="color: Red;">
                            <%= ErrorMessage[i] %>
                        </div>
                        <% } %>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
